using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace RLFtrClc
{
    public partial class RLFCMdi : Form
    {
        private int childFormNumber = 0;

        public RLFCMdi()
        {
            InitializeComponent();
        }

        private void ExitToolsStripMenuItem_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void CutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // TODO: Use System.Windows.Forms.Clipboard to insert the selected text or images into the clipboard
        }

        private void CopyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // TODO: Use System.Windows.Forms.Clipboard to insert the selected text or images into the clipboard
        }

        private void PasteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // TODO: Use System.Windows.Forms.Clipboard.GetText() or System.Windows.Forms.GetData to retrieve information from the clipboard.
        }

        //private void ToolBarToolStripMenuItem_Click(object sender, EventArgs e)
        //{
        //    toolStrip.Visible = toolBarToolStripMenuItem.Checked;
        //}


        private void CascadeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LayoutMdi(MdiLayout.Cascade);
        }

        private void TileVerticalToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LayoutMdi(MdiLayout.TileVertical);
        }

        private void TileHorizontalToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LayoutMdi(MdiLayout.TileHorizontal);
        }

        private void ArrangeIconsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LayoutMdi(MdiLayout.ArrangeIcons);
        }

        private void CloseAllToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form childForm in MdiChildren)
            {
                childForm.Close();
            }
        }

        private void editFighters_Click(object sender, EventArgs e)
        {
            // Create a new instance of the child form.
            EditFighters childForm = new EditFighters();
            // Make it a child of this MDI form before showing it.
            childForm.MdiParent = this;
            childForm.Text = "Edit Fighters";
            childForm.Show();
        }

        private void createFighterSquadronToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CreateFighters childForm = new CreateFighters("Squadron");
            childForm.MdiParent = this;
            childForm.Text = "Create Fighter Squadron";
            childForm.Show();
        }

        private void createFighterFlightToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CreateFighters childForm = new CreateFighters("Flight");
            childForm.MdiParent = this;
            childForm.Text = "Create Fighter Flight";
            childForm.Show();
        }

        private void createFighterGroupToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CreateFighters childForm = new CreateFighters("Group");
            childForm.MdiParent = this;
            childForm.Text = "Create Fighter Group";
            childForm.Show();
        }

        private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AboutBox1 childForm = new AboutBox1();
            childForm.MdiParent = this;
            childForm.Text = "About";
            childForm.Show();
        }

    }
}
